<table class="dottedborder">
  <tr>
    <td>
      <font class="regulartext">
        <font class="regulartext" style="font-weight: bold;">
          <%= @image_message if defined?(@image_message) %>
        </font>

        <%= error_messages_for 'image', :header_message => "Försök igen!", :message => "Titta igenom formuläret och rätta enligt anvisningar."   %><br/>
        <%= image_tag "ajax/spinner_bar.gif", :id => "image_upload_spinner" %>
        <script language="javascript">
          <!--
          $('image_upload_spinner').hide();
          //-->
        </script>
        <% form_tag({:action=> "image_upload" },
          :multipart => true,
          :target => "image_frame",
          :id => "image_upload",
          :onsubmit => "$('image_upload_spinner').show(); return true;") do %>
          <label for="file">Ange fil här</label>
          <%= file_field_tag "file" , :size => 10%>
          <%= submit_tag "Lägg till", :disable_with => "Bilden läggs in..." %>
        <% end %>
      </font>
    </td>
  </tr>
</table>
<iframe id="image_frame" name="image_frame" style="height:0;width:0;border:0;"></iframe>